package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 财务费用类型
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-17
 */
@Data
@TableName("finc_type")
@ApiModel(value = "FincType对象", description = "财务费用类型")
public class FincType implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("上级id")
    private Long pid;

    @ApiModelProperty("包含自己的和上一级的id，以逗号隔开")
    private String allIds;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("状态：1正常，0关闭")
    private Integer status;

    @ApiModelProperty("1收入，2支出，【现在添加的都是支付，收入暂时没有】")
    private Integer type;

    @ApiModelProperty("子目录列表")
    @TableField(exist = false)
    private List<FincType> children;

    @ApiModelProperty("管理范围列表")
    @TableField(exist = false)
    private List<FincTypeScope> fincTypeScopeList;

}
